package org.example.order.rpc;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = "localhost:8081", name = "inventory-service")
public interface InventoryClient {

    @PutMapping("inventory/lock-inventory")
    void lockInventory(@RequestParam("skuId") String skuId, @RequestParam("quantity") Integer quantity);
}
